package cn.com.cpic.insurance.rulecheck.core.parameter;

import java.util.Set;

import cn.com.cpic.insurance.rulecheck.core.ModifiableMap;
import cn.com.cpic.insurance.rulecheck.core.SimpleModifiableMap;

/**
 * 
 * 
 * @author 代波
 * @since 2011-8-13
 */
public final class SimpleParameterDictionary implements ParameterDictionary {
	private static final long serialVersionUID = -5270505097207087748L;

	private final ModifiableMap<String, ParameterDefine> runSet;
	private final ModifiableMap<String, ParameterDefine> sysSet;

	public SimpleParameterDictionary() {
		this((Set<ParameterDefine>) null, (Set<ParameterDefine>) null);
	}

	public SimpleParameterDictionary(Set<ParameterDefine> runSet, Set<ParameterDefine> sysSet) {
		this(new SimpleModifiableMap<String, ParameterDefine>(runSet),
				new SimpleModifiableMap<String, ParameterDefine>(sysSet));
	}

	public SimpleParameterDictionary(ModifiableMap<String, ParameterDefine> runSet,
			ModifiableMap<String, ParameterDefine> sysSet) {
		super();
		this.runSet = runSet;
		this.sysSet = sysSet;
	}

	public ModifiableMap<String, ParameterDefine> getSystemParameterDefines() {
		return sysSet;
	}

	public ModifiableMap<String, ParameterDefine> getRuntimeParameterDefines() {
		return runSet;
	}
}
